package com.itboye.hutouben.responsitory;

import com.google.gson.reflect.TypeToken;
import com.itboye.hutouben.bean.HomeMallBean;
import com.itboye.hutouben.bean.MaintenanceBean;
import com.itboye.hutouben.interfaces.IMaintenance;
import com.itboye.hutouben.volley.BaseErrorListener;
import com.itboye.hutouben.volley.BaseNetRepository;
import com.itboye.hutouben.volley.BaseSuccessReqListener;
import com.itboye.hutouben.volley.ByJsonRequest;

import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by itboye on 2016/12/5.
 */

public class Mantenanceponsitory extends BaseNetRepository implements IMaintenance<MaintenanceBean> {

    public static final String Maintenance="";
//    /**
//     * 维修保养
//     * @param uid
//     * @param id
//     */
//    @Override
//    public void onMaintenance(String uid, String id) {
//        Type type = new TypeToken<MaintenanceBean>() {
//        }.getType();
////        String apiVer = api;
//        Map<String, Object> map = new HashMap<>();
//        map.put("uid", uid);
//        map.put("id", id);
//
//        (new ByJsonRequest.Builder<MaintenanceBean>())
//                .setTypeVerParamsAndReturnClass("", "", map, type)
//                .requestListener(
//                        new BaseSuccessReqListener<MaintenanceBean>(
//                                getListener()))
//                .errorListener(new BaseErrorListener(getListener()))
//                .desEncodeThenBuildAndSend();
//    }
}
